package com.ophiux.cs.application.user.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.cs.application.core.Throws.ParamException;
import com.ophiux.utils.common.StringUtil;

public class getPatientInfoRequest  extends RequestDTO{
	
	private String USER_ID;//	Y	String	用户ID
	private String USER_PWD;//	Y	String	用户密码（用于验证身份合法）
	
	public String getUSER_ID() {
		return USER_ID;
	}
	public void setUSER_ID(String uSER_ID) {
		USER_ID = uSER_ID;
	}
	public String getUSER_PWD() {
		return USER_PWD;
	}
	public void setUSER_PWD(String uSER_PWD) {
		USER_PWD = uSER_PWD;
	}
	/**
	 * 参数可空验证
	 * @return
	 * @throws ParamException 
	 */
	public void paramVer() throws ParamException {
		if(StringUtil.isEmpty(this.USER_ID)) {
			throw new ParamException("用户ID不可为空");
		}
		if(StringUtil.isEmpty(this.USER_PWD)) {
			throw new ParamException("用户密码不可为空");
		}
	}
	@Override
	public boolean isParamValid() {
		if(StringUtil.isEmpty(this.USER_ID)||StringUtil.isEmpty(this.USER_PWD)) {
			return false;
		}
		return true;
	}
}
